import axios from "../request";

// 获取用户列表
export const getUserApi = (params) =>
	axios({
		url: "/system/user",
		params,
	});

// 新增用户
export const addUserApi = (data) =>
	axios({
		url: "/system/user",
		method: "post",
		data,
	});

// 编辑用户
export const editUserApi = (data) =>
	axios({
		url: "/system/user",
		method: "put",
		data,
	});

// 删除用户
export const deleteUserApi = (data) =>
	axios({
		url: "/system/user",
		method: "delete",
		data,
	});

// 重置密码
export const resetPasswordApi = (data) =>
	axios({
		url: "/system/user/resetPassword",
		method: "put",
		data,
	});
